home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1997 / MacHack 1997.toast / Hacks / Hacks ’97 / Warrior’s Progress / source code / Source / Libraries / Lists / ListNode.cp < prev    next >
Encoding:
Text File  |  1997-06-28  |  278 b   |  23 lines  |  [TEXT/CWIE]

  1. // ListNode.cp
  2.  
  3. #ifndef ListNode_h
  4. #include "ListNode.h"
  5. #endif
  6. #ifndef List_h
  7. #include "List.h"
  8. #endif
  9.  
  10. ListNode::ListNode()
  11.   : next( 0 ),
  12.      previous( 0 ),
  13.      owner( 0 )
  14.   {
  15.   }
  16.  
  17. ListNode::~ListNode()
  18.   {
  19.     if ( owner != 0 )
  20.         owner->Remove( *this );
  21.     Assert( owner == 0 );
  22.   }
  23.